package com.moshang.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.moshang.blog.entity.ThirdLoginUser;

import java.util.List;

/**
 * @program: blog
 * @description: ${description}
 * @author: xieweiwei
 * @create: 2018-10-18 12:32
 **/
public interface ThirdLoginUserService extends IService<ThirdLoginUser> {
    ThirdLoginUser findBycondition(String uid, String loginType,Integer status);
    String getAccessToken(String code, String githubClientId, String githubClientSecret, String githubRedictUrl);

    ThirdLoginUser getUserInfo(String accessToken, Object o);

    void updateDate(ThirdLoginUser param);

    List<ThirdLoginUser> findByStatus(Integer status);
}
